chore: switch to v2 specs for shorter SDK class names#352
Merged
louis-sanna-dev merged 9 commits intomainfrom Feb 17, 2026
Merged
chore: switch to v2 specs for shorter SDK class names#352louis-sanna-dev merged 9 commits intomainfrom
louis-sanna-dev merged 9 commits intomainfrom
Conversation
- test-generate: Test SDK generation locally - update-speakeasy-version: Update Speakeasy CLI version Production generation is done via GitHub Actions.
Update Speakeasy workflow to pull from :v2 registry tags instead of :main. This enables shorter SDK class names via x-mistral-sdk-operation-id.
Auto-generated by Speakeasy using v2 spec with short operation IDs. Class names now use concise names like ArchiveModelRequest instead of JobsAPIRoutesFineTuningArchiveFineTunedModelRequest.
dumontg
approved these changes
Feb 16, 2026
9945f62 to
9db3227
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
:v2registry tags for all sources (main, azure, gcp)This enables shorter SDK class names via
x-mistral-sdk-operation-idin the OpenAPI spec.Before:
JobsAPIRoutesFineTuningArchiveFineTunedModelRequestAfter:
ArchiveModelRequestRelated
Local Testing
Test in test.pypi
Published and verified: https://test.pypi.org/project/mistralai/#history
uv run --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ --with mistralai==2.0.0a3 python -c "import os; from mistralai.client import Mistral; client = Mistral(api_key=os.environ['MISTRAL_API_KEY']); res = client.chat.complete(model='mistral-small-latest', messages=[{'role': 'user', 'content': 'Say OK'}]); print(res.choices[0].message.content)"Test plan
ChatCompletionRequest)